package com.aisino;

import com.aisino.service.ScoreService;
import com.aisino.service.UserService;
import org.springframe.annotation.ComponentScan;
import org.springframe.context.AnnotationApplicationContext;

/**
* @package  com.aisino
* @classname ApplicationStart
* @description APP程序启动类
* @version 1.0
* @author luoweiwei
* @date  2021-04-23 15:03:40
*/
@ComponentScan("com.aisino")
public class ApplicationStart {

    public static void main(String[] args) {
        AnnotationApplicationContext applicationContext =  new AnnotationApplicationContext(ApplicationStart.class);
        UserService userService = (UserService) applicationContext.getBean("userService");
        userService.test();

        ScoreService scoreService = (ScoreService) applicationContext.getBean("scoreService");
        scoreService.add();
    }
}
